import request from '@/utils/request'

export function getSysSetting(data) {
  return request({
    url: 'setting/page',
    method: 'post',
    data
  })
}

export function getSysSettingDetail(data) {
  return request({
    url: '/setting/' + data,
    method: 'get'
  })
}

export function addSysSetting(data) {
  return request({
    url: '/setting/add',
    method: 'post',
    data
  })
}

export function editSysSetting(data) {
  return request({
    url: '/setting/update',
    method: 'post',
    data
  })
}

export function deleteSysSetting(data) {
  return request({
    url: '/setting/delete/' + data,
    method: 'post'
  })
}
